package com.zhtd.knocker.http;

/**
 * Http Resonse Object
 *
 * @author zhouwei
 */
public class ResponseBean {
    private ResponseBean.Status status;
    private String response;

    public ResponseBean() {
    }

    public ResponseBean.Status getStatus() {
        return this.status;
    }

    public void setStatus(ResponseBean.Status status) {
        this.status = status;
    }

    public String getResponse() {
        return this.response;
    }

    public void setResponse(String response) {
        this.response = response;
    }

    public boolean success(){
        return Status.SUCCESS == status;
    }

    public static enum Status {
        SUCCESS,
        FAILED;

        private Status() {
        }
    }
}
